﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ListView.aspx.cs" Inherits="TypeProcess_ListView" MasterPageFile="~/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderId ="head" runat="server">
<title>Agregar Escrito</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderId ="body" runat="server">
    <h1 class="title">Lista de Procesos</h1>

    <asp:Repeater ID="rptTypeProcess" runat="server" OnItemCommand="rpt_ItemCommand">
        <HeaderTemplate>
            <table>
                <tr>
                    <th>ID</th>
                    <th>Nombre</th>                    
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td><%#Eval("ID") %></td>                
                <td><%#Eval("Name") %></td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="Visualizar" CommandName="Display" CommandArgument='<%#Eval("ID") %>'/>                    
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>

    <asp:Button ID="btnAddNew" runat="server" Text="Nuevo" OnClick="btnAddNew_Click" />
</asp:Content>
